<script type="text/html" template lay-done="layui.data.done(d);">
    <table class="layui-table layui-form" lay-filter="LAY-app-StudioManagement-getPushUrl" id="LAY-app-StudioManagement-getPushUrl">
        <colgroup>
            <col width="110">
            <col>
            <col>
        </colgroup>
        <tbody>
            <tr>
                <td>
                    <label for="cdnUrl">分享二维码</label>
                </td>
                <td>
                    <img src="{{ d.params.data.qrcodeUrl || '' }}" style="width: 200px;height: 200px;max-width: 200px;" />
                </td>
                <td style="text-align: center">
                    <a href="{{ d.params.data.qrcodeUrl || '' }}" target="_blank" class="layui-btn">立即下载</a>
                </td>
            </tr>
            <tr>
                <td>
                    <label for="pagePath">分享路径</label>
                </td>
                <td>
                    {{ d.params.data.pagePath || '' }}
                </td>
            </tr>
            <tr>
                <td>
                    <label for="posterUrl">分享海报</label>
                </td>
                <td>
                    <img src="{{ d.params.data.posterUrl || '' }}" style="width: 300px; height: auto; max-width: 300px;" />
                </td>
                <td style="text-align: center">
                    <a href="{{ d.params.data.posterUrl || '' }}" target="_blank" class="layui-btn">立即下载</a>
                </td>
            </tr>

        </tbody>
    </table>
</script>

<script>
    var debug = layui.setter.debug;
    layui.data.done = function (d) {
        //开启调试情况下获取接口赋值数据
        if (debug) { console.log(d.params.data); }

        layui.use(['admin', 'form', 'coreHelper'], function () {
            var $ = layui.$
                , setter = layui.setter
                , admin = layui.admin
                , coreHelper = layui.coreHelper
                , form = layui.form;
            form.render(null, 'LAY-app-StudioManagement-getPushUrl');
        });
    };
</script>